package domain;

/**
 * 学生模型
 * 
 * May 9, 2009
 *
 * @author Fabian
 *
 */
public class Student extends User{
	//编号
	private int id;
	//学号(登陆用)
	private int number;
	//姓名
	private String name;
	//性别
	private String sex;
	//密码
	private String password;
	//班级id
	private int class_id;
	//年级id
	private int grade_id;
	//年级
	private int grade;
	//专业id
	private int major_id;
	//专业
	private String major;
	
	private int role_id = 3;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return the class_id
	 */
	public int getClass_id() {
		return class_id;
	}

	/**
	 * @param class_id the class_id to set
	 */
	public void setClass_id(int class_id) {
		this.class_id = class_id;
	}

	/**
	 * @return the grade_id
	 */
	public int getGrade_id() {
		return grade_id;
	}

	/**
	 * @param grade_id the grade_id to set
	 */
	public void setGrade_id(int grade_id) {
		this.grade_id = grade_id;
	}

	/**
	 * @return the grade
	 */
	public int getGrade() {
		return grade;
	}

	/**
	 * @param grade the grade to set
	 */
	public void setGrade(int grade) {
		this.grade = grade;
	}

	/**
	 * @return the major_id
	 */
	public int getMajor_id() {
		return major_id;
	}

	/**
	 * @param major_id the major_id to set
	 */
	public void setMajor_id(int major_id) {
		this.major_id = major_id;
	}

	/**
	 * @return the major
	 */
	public String getMajor() {
		return major;
	}

	/**
	 * @param major the major to set
	 */
	public void setMajor(String major) {
		this.major = major;
	}

	/**
	 * @return the role_id
	 */
	public int getRole_id() {
		return role_id;
	}

	/**
	 * @param role_id the role_id to set
	 */
	public void setRole_id(int role_id) {
		this.role_id = role_id;
	}	
}
